:root {
  --m-action-bar-background-color: #fff;
  --m-action-bar-padding: 20px;
  --m-action-bar-padding-top: 12px;
  --m-action-bar-padding-bottom: 24px;
  --m-action-bar-icon-size: 22px;
  --m-action-bar-icon-width: 112px;
  --m-action-bar-icon-height: 100%;
  --m-action-bar-icon-text-color: var(--van-gray-8);
  --m-action-bar-icon-font-size: var(--van-font-size-sm);
  --m-action-bar-icon-background-color: #fff;
  --m-action-bar-button-width: 151px;
  --m-action-bar-button-height: 42px;
  --m-action-bar-button-font-size: var(--van-font-size-lg);
  --m-action-bar-button-font-weight: var(--van-font-weight-bold);
  --m-action-bar-button-border-radius: 21px;
}
.m-action-bar {
  display: flex;
  align-items: center;
  box-sizing: content-box;
  padding-top: var(--m-action-bar-padding-top);
  padding-bottom: var(--m-action-bar-padding-bottom);
  background: var(--m-action-bar-background-color);
  z-index: 9;
  &.fixed {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

.m-action-bar-item {
  position: relative;
  flex: 1;
  min-width: 64px;

  &.inline {
    flex: none;
  }

  &:first-child {
    &.m-action-bar-button {
      padding-left: var(--m-action-bar-padding);
    }
  }
  &:last-child {
    &.m-action-bar-button {
      padding-right: var(--m-action-bar-padding);
    }
  }
}

.m-action-bar-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: var(--m-action-bar-icon-width);
  height: var(--m-action-bar-icon-height);
  color: var(--m-action-bar-icon-text-color);
  font-size: var(--m-action-bar-icon-font-size);
  line-height: 1;
  text-align: center;
  background: var(--m-action-bar-icon-background-color);
  cursor: pointer;

  &__icon {
    font-size: var(--m-action-bar-icon-size) !important;
  }
  &__text {
    margin-top: 5px;
  }
}

.m-action-bar-button {
  min-width: var(--m-action-bar-button-width);
  border: none;
  flex: 1;
  .van-button--round {
    height: var(--m-action-bar-button-height);
    border-radius: var(--m-action-bar-button-border-radius);
    font-weight: var(--m-action-bar-button-font-weight);
    font-size: var(--m-action-bar-button-font-size);
  }
}
